\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q: I have subclassed Button and ButtonCell in my application. I am setting the cell class for my button in the
However my cell class is not being created and initialized properly. What is going on?\
\
A:
\b setCellClass:
\b0 is a factory method and must occur prior to any instance creation—
\b init:
\b0 is too late. The correct place to do this is in the
\b +initialize
\b0 factory method for your Button subclass (which is called before any instances are created). This problem can occur with all Cell subclasses—such as TextField and NXBrowser. (
\b +initialize
\b0 is an Object factory method; see the Object class specification sheet for more information.) \